liste = [2, 3]
print "rentrer Quelquechose"
d = 'coucou'
i = raw_input()
i = int(i)
c = liste[liste.__len__() - 1]
while c <= i:
    ok = int(0)
    for item in liste :
        if (c % item) == 0 :
            ok = int(ok + 1)
            break
    if ok == 0 :
        liste.append(c)
    c = c + 2
    

print liste
